<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String url = request.getScheme() + "://" + request.getServerName()
			+ request.getRequestURI();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<title>user111</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<%@ include file="/html/custom/header.jsp"%>
			
		<style>
		.td-op{width: 160px;}
		</style>
		<script type="text/javascript" src="<%=basePath%>html/js/swss.role.js"></script>
	</head>

	<body>

		<!-- 导航 -->
		<s:action name="showTopNav" executeResult="true" namespace="/user"></s:action> 
		<!-- /导航 -->
		
		<div id="content">
			<!-- 单条删除辅助html -->
			<%@ include file="/html/custom/formDel.jsp"%>
			<!-- toolbar -->
			<div class="toolbar">
				<!-- 分页页面片 -->
				<%@ include file="/html/custom/pagination.jsp"%>
				
				<span id="btnset" class="btnset"> <a id="btnAddData" href="#">新增角色</a></span>
			</div>
			<!-- 数据表通用格式 -->
			<div class="datagird">

				<table class="ui-widget ui-widget-content">
					<thead>
						<tr class="ui-widget-header ">

							<th>
								<a id="th_roleName" href="#">角色名称<span class="ui-icon"></span>
								</a>
							</th>
							<th>
								角色描述
							</th>
							<th class="td-op">
								操作
							</th>
						</tr>
					</thead>
					<tbody>
						<s:iterator value="#request.pagination.result">
							<tr>

								<td>
									<s:property value="roleName" />
								</td>
								<td>
									<s:property value="description" />
								</td>
								
								<td>
									<a class="btn-form" id="btnDel_<s:property value="id" />"
										href="#"><span class="ui-icon ui-icon-circle-close"></span>删除</a>
									<a class="btn-form" id="btnUpdate_<s:property value="id" />"
										href="#"><span class="ui-icon ui-icon-wrench"></span>修改</a>
									<a class="btn-form" id="btnUpdate2_<s:property value="id" />"
										href="#"><span class="ui-icon ui-icon-wrench"></span>权限</a>
								</td>

							</tr>
						</s:iterator>


					</tbody>
				</table>
			</div>
			<div class="toolbar">
				<%@ include file="/html/custom/pagination.jsp"%>
			</div>
		</div>



		<div id="loading"></div>
		<div id="mask"></div>
		<div id="msg"></div>
	</body>
</html>
